﻿namespace Sharpmark.MarkTweet.View
{
    using System.Windows;
    using Sharpmark.MarkTweet.Services.Twitter;
    using Sharpmark.MarkTweet.View.Controls;

    /// <summary>
    /// Interaction logic for UsersList.xaml
    /// </summary>
    public partial class Followers : Window
    {
        public Followers()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var list = (new TwitterService("inkji", "inkji.com")).Followers();
            UserBaseInfo infocontrol;
            foreach (User user in list)
            {
                infocontrol = new UserBaseInfo(user);
                UserList.Children.Add(infocontrol);
            }
        }
    }
}
